package com.sunny.service;

import com.github.pagehelper.PageInfo;
import com.sunny.common.ServerResponse;
import com.sunny.pojo.User;

import java.util.List;

/**
 * Created by yubao.jin on 2018/3/7.
 */
public interface IUserService {
    public ServerResponse<User> login(String domainAccount);

    public ServerResponse<List<User>> userList(String username, String role, String state);

    public ServerResponse<PageInfo<User>> userList(int pageNum, int pageSize, String username, String role, String state);

    public ServerResponse<User> selectUserById(int userId);

    public ServerResponse updateUser(String id, String role, String username, String phoneNumber);

    public ServerResponse disableUser(String userId);

    public ServerResponse enableUser(String userId);

    public ServerResponse insertUser(String state, String role, String username, String phoneNumber, String domainAccount);
}
